Fixed jquery and database