Created index

Updated app files and stupid PostgreSQL on localhost.