Improve code.
Create DatabaseActions class in dao package.