database structure and first php files