Initialize database only once
Use var instead of init