db functionality :shipit: