added the user and post models and updated the index to read from the database