Databases homeworks