Input and db