Added draft of DB interaction.