db: first part finished