init database interface