Add database structure + Ajax calls correction