Removed bootstrap and accessed database with first query