Database manipulation layer