Database homeworks