public static void initDatabase(){
        File dbFile = new File(DATABASE_FILE);
        if(dbFile.exists()){
            System.out.println("Warning! Database already exists! To delete, please run resetDatabase()");
            return;
        }
        try {
            Class.forName("org.sqlite.JDBC");
            Connection connection = DriverManager.getConnection("jdbc:sqlite:" + DATABASE_FILE);

            Statement statement = connection.createStatement();
            String query = "CREATE TABLE POSTS" +
                    "(id INTEGER PRIMARY KEY," +
                    " title TEXT NOT NULL," +
                    " text TEXT NOT NULL," +
                    " created LONG NOT NULL, " +
                    "author TEXT NOT NULL," +
                    " avatar TEXT)";

            statement.executeUpdate(query);
            statement.close();
            connection.close();
            System.out.println("Database initialized!");

        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        } catch (SQLException e) {
            e.printStackTrace();
        }
    }