Finit base sql