You need to provide more context - your question is so vague it's nearly impossible to answer as is. Preferrably post a (short!) snippet of code showing the essential bits of how you currently talk to your database and explain the tasks you'd need to implement a bit clearer.