diff --git a/README.md b/README.md
index c7b950b..336266f 100644
--- a/README.md
+++ b/README.md
@@ -17,10 +17,10 @@ If you made it this far, congrats! We're not even close to done. Next you will n
You first need to head over to ```app/server/conn.php``` and set the correct information, if you're using localhost, this should be the following details:
- - localhost
- - (username)
- - (password)
- - Gallery
+- localhost
+- (username)
+- (password)
+- Gallery
I recommend using a database name such as Gallery, but others should work just as well.
@@ -28,11 +28,19 @@ I also recommend not using root for this and setting up a user specifically for
You will next need to setup the following 5 tables:
- - images
- - users
- - tokens
- - logs
- - bans
+#### Images
+```CREATE TABLE images ( id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, imagename VARCHAR(50) UNIQUE, alt VARCHAR(255), tags VARCHAR(255), alt VARCHAR(50), modified TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, upload TIMESTAMP DEFAULT CURRENT_TIMESTAMP );```
+#### Users
+```CREATE TABLE users ( id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, usernname VARCHAR(50) NOT NULL UNIQUE, password VARCHAR(255) NOT NULL, admin bool, modified TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP );```
+#### Tokens
+```CREATE TABLE tokens ( id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, code VARCHAR(50) NOT NULL, used BOOL, used_at VARCHAR(50) NOT NULL );```
+#### Logs
+```CREATE TABLE logs ( id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, ipaddress VARCHAR(16) NOT NULL, action VARCHAR(255), time TIMESTAMP DEFAULT CURRENT_TIMESTAMP );```
+#### Bans
+```CREATE TABLE bans ( id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, ipaddress VARCHAR(16) NOT NULL, reason VARCHAR(255), time TIMESTAMP DEFAULT CURRENT_TIMESTAMP, length VARCHAR(255) NOT NULL, permanent BOOL NOT NULL ); ```
+
+### Manifest
+In the ```app/settings/manifest.json``` you have a list of infomation about your website. You must change ```user_name``` to your prefered name, ```is_testing``` to false as that is used for development and ```upload_max``` to your prefered file size max in MBs.
## License
This project is under the GNU v3 License
diff --git a/app/account/account.php b/app/account/account.php
index f068d94..12534f9 100644
--- a/app/account/account.php
+++ b/app/account/account.php
@@ -125,11 +125,15 @@ if (isset($_POST['submit_login'])) {
is_admin($conn, $id) == false) {
+ mysqli_query($conn,"UPDATE users SET admin = 1 WHERE id = 1");
+ }
} else {
?>